Skip to content

fix(docs-next): External url paths in sidebar are truncated#2245

Merged
dancormier merged 6 commits intomainfrom
fix-docs-external-url
Apr 24, 2026
Merged

fix(docs-next): External url paths in sidebar are truncated#2245
dancormier merged 6 commits intomainfrom
fix-docs-external-url

Conversation

@abovedave
Copy link
Copy Markdown
Collaborator

@abovedave abovedave commented Apr 23, 2026

Currently they are passed to resolve() which removes the first char of the string and prefixes with the base url.

Screenshot 2026-04-24 at 12 06 35

@abovedave abovedave added the bug A reproducible problem with the Stacks code label Apr 23, 2026
@abovedave abovedave requested a review from a team as a code owner April 23, 2026 14:04
@abovedave abovedave added the docs Issues with the documentation site label Apr 23, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

⚠️ No Changeset found

Latest commit: c850fa7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 23, 2026

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit c850fa7
🔍 Latest deploy log https://app.netlify.com/projects/stacks/deploys/69eb828d47527d0008c1b7c6
😎 Deploy Preview https://deploy-preview-2245--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

abovedave and others added 4 commits April 23, 2026 16:58
The inner anchor's rel was keyed off subsection.externalUrl while its
href is derived from item.externalUrl, so a nested external item would
not get rel="external" and a subsection with externalUrl plus items
would apply rel="external" to internal children. Also re-indent the
inner block to match the 2-space style used elsewhere in the file and
move href onto its own line.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
dancormier
dancormier previously approved these changes Apr 24, 2026
Copy link
Copy Markdown
Contributor

@dancormier dancormier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good @abovedave I pushed a commit with some minor formatting changes and a change to ensure the rel value syncs up with the href value on these items.

It's good to go! 🚀

eslint-disable-next-line only suppresses the line immediately after it.
Moving href onto its own line put it two lines below the comment, so
svelte/no-navigation-without-resolve fired again.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dancormier dancormier merged commit 1b8c595 into main Apr 24, 2026
18 checks passed
@dancormier dancormier deleted the fix-docs-external-url branch April 24, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug A reproducible problem with the Stacks code docs Issues with the documentation site

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants